<script>
import { addAppError } from '@/service/upload.js';
export default {
	onLaunch: function() {
		console.log('App Launch');
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	},
	onError(e) {
		let appVersion = 1160;
		// #ifdef APP-PLUS
		appVersion = plus.runtime.version.split('.').join('');
		// #endif
		let pages = getCurrentPages();
		let route = pages[pages.length - 1].route;
		addAppError({ errorInfo: e.name + ': ' + e.message, appVersion, pagePath: route });
	}
};
</script>

<style>
/* #ifndef APP-NVUE */
/*每个页面公共css uParse为优化版本*/
@import './common/app.css';
/* #endif */
</style>
